package com.lovemanai.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Email entity. @author MyEclipse Persistence Tools
 */

public class Email implements java.io.Serializable {

	// Fields

	private Integer id;
	private String addr;

	private Set<Letter> letters = new HashSet<Letter>(0);
	
	private User user;
	// Constructors

	/** default constructor */
	public Email() {
	}

	/** full constructor */
	public Email(String addr) {
		this.addr = addr;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public Set<Letter> getLetters() {
		return letters;
	}

	public void setLetters(Set<Letter> letters) {
		this.letters = letters;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	
}